home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
qdhelp.zip
/
SOUND.QDH
< prev
next >
Wrap
Text File
|
1992-12-26
|
3KB
|
102 lines
//
// SOUND.QDH
// This is a sample QDHELP file which shows you how to play
// .wav files from inside you help file. It is just too cool!
//
//
//
// set up the options for the .hpj file
//
/hpjoption COPYRIGHT,Copyright Phil Allen 1991-1992
/hpjoption REPORT,ON
/hpjoption TITLE,TEMPLATE FOR WIN 3.1
/hpjconfig BrowseButtons()
/hpjoption CONTENTS,TPLATE_INDEX
//
// Register the routine that plays sounds for us
//
/hpjconfig RegisterRoutine("MMSYSTEM","sndPlaySound","Si")
//
// start of topics
//
/topic TPLATE_INDEX
/title QDHELP Sound Demo
/defformat \sa150
/para
/text \b\i\fs50,QDHELP Sound Demo
/endpara
/para \fi200
This is a demonstration of how to play a sound file from within
WINHELP using QDHELP. You need QDHELP Version 2.0 or later to
compile the .QDH source file to build this help file.
/endpara
/para \fi200
The following hypertext link will play the included wave file
syncronously. That means it will start playing it and will not
return until it has finished playing the entire file.
/endpara
/para
/macrolink Play that Thing Sync,sndPlaySound(`qdhelp.wav',0)
/endpara
/para \fi200
The following hypertext link will play the included wave file
asyncronously. That means it will start playing it and return
prior to finishing.
/endpara
/para
/macrolink Play that Thing Async,sndPlaySound(`qdhelp.wav',1)
/endpara
/para \fi200
The following hypertext link will play a wave file over and
over and over again until you hit Stop sound hypertext link
below.
/endpara
/para
/macrolink Play that Thing Loop!,sndPlaySound(`qdhelp.wav',9)
/endpara
//
// this is a kludge since we should pass NULL as the file name
// to stop the sound. Unfortunetly WINHELP does not seem
// to want to let us pass anything but a string and "" does
// not work since it is a empty string The routine wants
// 0 passed in as the address of the string. In terms of
// C it whats (char *)NULL
// oh well
/para
/macrolink Stop that Thing NOW,sndPlaySound(`qdhelp.wav',0)
/endpara
/para
The following bitmap will play your SystemStart sound defined
in your WIN.INI file. If there is no SystemStart sound it will
play the SystemDefault sound also in the WIN.INI under the
[sounds] section. If there is not SystemDefault then no sound
will be played.
/endpara
/para
/bitmap l,sound.shg
/endpara
/endtopic